import { registerPanelItemProvider } from '@ibiz-template/runtime';
import { withInstall } from '@ibiz-template/vue3-util';
import { TopNavTabs } from './top-nav-tabs';
import { TopNavTabsProvider } from './top-nav-tabs.provider';

export const IBizTopNavTabs = withInstall(TopNavTabs, v => {
  v.component(TopNavTabs.name!, TopNavTabs);
  registerPanelItemProvider('RAWITEM_NAV_TABS', () => new TopNavTabsProvider());
});
